The height of a sprite asset, in pixels — the same size the editor’s art already has for spr itself, whether or not any instance is currently showing it.
sprite_height(spr) -> int| Name | Type |
|---|---|
spr | sprite |
int
The height of a sprite asset, in pixels - the same size the editor's art already has for spr itself, whether or not any instance is currently showing it.
y = room_bottom() - sprite_height(spr_doc_hero) / 2;Puts this instance against the room's bottom edge the same way sprite_width puts it against the right edge. The room's y counts down from its top-left corner, so room_bottom() is the bottom edge, and the instance sits half a sprite's height above it.
Same compile-time read as sprite_width — see its own gba note.